<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/*
 * 后台管理系统控制器文件
 * 所有页面控制器 需要继承此类 
 *
 *
 */
class Admin_Controller extends MY_Controller {
	public function __construct()
	{
		parent::__construct();
		header("Cache-Control: no-cache, must-revalidate");
		header("Pragma: no-cache");
		$uri3 = array('login','login_post');
		$this->uri->segment(3);
		if($this->uri->segment(1) == 'admin' && $this->uri->segment(2) == 'user' && in_array($this->uri->segment(3),$uri3))
        {
                    
        }
		else
		{
			$this->_is_login();
			if(!isset($this->G->user->competence) || $this->G->user->competence < 1)
			{
				 header("Location: ".  site_url('admin/user/login'));
				 exit;
			}
		}
	}
}

/* End of file welcome.php */
/* Location: ./application/controllers/welcome.php */